//
//  FPCruxTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/13.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPCruxTableViewCell.h"

#define imageWidth (kScreenWidth - 30) / 3

@implementation FPCruxTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
        layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        self.collectView = [[UICollectionView alloc] initWithFrame:CGRectMake(0 , 0, kScreenWidth,kImageH(160)) collectionViewLayout:layout];
        self.collectView.bounces = NO;
        self.collectView.showsHorizontalScrollIndicator = YES;
        self.collectView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:_collectView];
    }
    return self;
}

@end
